package cn.xiuxian.entity;


import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class User  implements Serializable {

  private Integer id;
  private String username;
  private String password;
  private Date birthday;
  private Integer power;

  private List<Video>  videoList;

  public List<Video> getVideoList() {
    return videoList;
  }

  public void setVideoList(List<Video> videoList) {
    this.videoList = videoList;
  }

  public User() {
  }

  public User(String username, String password, Date birthday, Integer power) {
    this.username = username;
    this.password = password;
    this.birthday = birthday;
    this.power = power;
  }

  public User(Integer id, String username, String password, Date birthday, Integer power) {
    this.id = id;
    this.username = username;
    this.password = password;
    this.birthday = birthday;
    this.power = power;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }


  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }


  public Date getBirthday() {
    return birthday;
  }

  public void setBirthday(Date birthday) {
    this.birthday = birthday;
  }

  public Integer getPower() {
    return power;
  }

  public void setPower(Integer power) {
    this.power = power;
  }

  @Override
  public String toString() {
    return "User{" +
            "id=" + id +
            ", username='" + username + '\'' +
            ", password='" + password + '\'' +
            ", birthday=" + birthday +
            ", power=" + power +
            '}';
  }
}
